<?php
/**
*
* Description
*
* @package	VirtueMart
* @subpackage
* @author
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default.php 6461 2012-09-16 21:49:03Z Milbo $
*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

//JHtml::script(Juri::base().'templates/cashdressing/js/cash_template.js');

$doc    = &JFactory::getDocument();

$js='jQuery(function() {
	
	function swapCaroussel(){

	    var activeImg = jQuery(".showCa"); 
	    var nextImg = (jQuery(".showCa").next().length > 0) ? jQuery(".showCa").next() : jQuery("#viewPortLeft img:first");	    
	    
	    nextImg.fadeTo( "slow" , 1);
	    nextImg.removeClass("hide");
	    nextImg.css( "height", "494px" );
	    nextImg.addClass("showCa");
	    
	    activeImg.fadeTo( "slow" , 0);
	    activeImg.removeClass("showCa");
	    activeImg.css( "display", "none" );
	    activeImg.addClass("hide");
	    
	    var i = jQuery("#viewPortLeftPoint2").css("left");
            if(typeof i !== "undefined"){
                i = parseInt(i.replace("px",""));
                i = (i < 65) ? i + 19 : 15;

                jQuery("#viewPortLeftPoint2").css("left",i + "px");   
            }
            
            
   };
   
   setInterval(swapCaroussel, 5233);
});
';
$doc->addScriptDeclaration($js);
JHTML::_( 'behavior.modal' );
?>

<div id="content">
    <table>
        <tr><td style="width:60%;">
        <!--<div id="carousel">-->
          <div id="viewPortLeft">
            <img class="showCa" src="<?php echo $this->baseurl; ?>/templates/cashdressing/images/carousel1.png">
            <img class="hide" src="<?php echo $this->baseurl; ?>/templates/cashdressing/images/carousel2.png">
            <img class="hide" src="<?php echo $this->baseurl; ?>/templates/cashdressing/images/carousel3.png">
            <img class="hide" src="<?php echo $this->baseurl; ?>/templates/cashdressing/images/carousel4.png">    
          </div>
          <div id="viewPortLeftPoint">
            <img src="<?php echo $this->baseurl; ?>/templates/cashdressing/images/carouselPoint.png">
          </div>
          <div id="viewPortLeftPoint2">
            <img src="<?php echo $this->baseurl; ?>/templates/cashdressing/images/pointGris.png">
          </div>
            </td> 
            <td style="width: 40%;">
          <div id="viewPortRight">
            <div id="viewPortRightCell">
              <img src="<?php echo $this->baseurl; ?>/templates/cashdressing/images/carrouselRightTop.png">
            </div>
            <div id="viewPortRightCell">
              <img src="<?php echo $this->baseurl; ?>/templates/cashdressing/images/carouselRightMiddle.png">
            </div>
            <div id="viewPortRightCell">
              <img src="<?php echo $this->baseurl; ?>/templates/cashdressing/images/carouselRightBottom.png">
            </div>
          </div>
            </td>
        </tr>
    </table>
        <!--/div-->
        
        <div id="howTo">          
          <table id="halfhorizontal">          
                  <tr>
                      <td class="logo"> 
                        <img src="<?php echo $this->baseurl; ?>/templates/cashdressing/images/imprimantePicto.png">
                      </td>  
                      <td class="text">  
                          <span class="blue"><a href="/index.php/auth?tmpl=component&ml=1">Commandez votre &eacute;tiquette</a></span>
                      </td>
                      <td class="center"></td>
                      <td class="logo">                
                        <img src="<?php echo $this->baseurl; ?>/templates/cashdressing/images/sacPicto.png">
                      </td>
                      <td class="text">
                        <span class="red"><a href="/index.php/auth?tmpl=component&ml=1">Commandez votre sac </a></span>
                      </td>
                  </tr>
                       
          </table>
        </div>
        
       
        <?php # Vendor Store Description
        /*
        if (!empty($this->vendor->vendor_store_desc) and VmConfig::get('show_store_desc', 1)) { ?>
        <p class="vendor-store-desc">
                <?php echo $this->vendor->vendor_store_desc; ?>
        </p>
        <?php } ?>

        <?php
        # load categories from front_categories if exist
        if ($this->categories and VmConfig::get('show_categories', 1)) echo $this->loadTemplate('categories');

        # Show template for : topten,Featured, Latest Products if selected in config BE
        if (!empty($this->products) ) { ?>
                <?php echo $this->loadTemplate('products');
        }
            */
        ?>
        
        <!--div class="grid">
          <span class="black50">Vous achetez en toute s&eacute;curit&eacute; sur CashDressing</span>
          <br>
          <div class="cadregris"><img src="<?php //echo $this->baseurl; ?>/templates/cashdressing/images/paiementCarteSecu.png"></div>
        </div-->
    </div>


<script>
    //launcherCash();
</script>